package com.lin.server;

import com.lin.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017/8/29.
 */
public interface OrderMasterService {
    OrderDTO create(OrderDTO orderDTO);

    OrderDTO findOne(String orderId);

    Page<OrderDTO> findList(String buyerOpenId, Pageable pageable);

    OrderDTO cancel(OrderDTO orderDTO);

    OrderDTO finish(OrderDTO orderDTO);

    OrderDTO paid(OrderDTO orderDTO);

    Page<OrderDTO> findList(Pageable pageable);

    Page<OrderDTO> findAll(String startTime,String endTime,String orderId,
                           String buyerName,String buyerPhone,String payStatus,String orderStatus,Pageable pageable);

    List<OrderDTO> findAll(String startTime,String endTime,String orderId,
                           String buyerName,String buyerPhone,String payStatus,String orderStatus);

    Long getSize(String startTime,String endTime,String orderId,
                 String buyerName,String buyerPhone,String payStatus,String orderStatus);
}
